﻿using MediaMover.Data;
using Ninject.Modules;

namespace MediaMover.Unit.Tests.Ninject
{
    class TestModule : NinjectModule
    {
        public DbAccessProvider DbAccessProvider { get; set; }
        public TvDbAccessProvider TvDbAccessProvider { get; set; }
        public override void Load()
        {
            if (DbAccessProvider != null)
                Bind<Access>().ToProvider(DbAccessProvider);
            if (TvDbAccessProvider != null)
                Bind<Access>().ToProvider(TvDbAccessProvider);
        }
    }
}
